#ifndef SKELETONREADER_H_
#define SKELETONREADER_H_

#include "Bone.h"
#include "SkeletonAnimationManager.h"
#include "TextureManager.h"
#include "Vector2D.h"
#define UNKNOWN_TYPE -1
#define ANIMATION_FILE_TYPE 0
#define POSE_TYPE 1
#define SIZE_TYPE 2

class SkeletonReader
{
	public:
	static Bone * LoadFromFile(char * fileName, SkeletonAnimationManager * skeletonAnimationManager, TextureManager * textureManager, Vector2D * size);
	static int GetElementType(char * element);
	static void HandleAnimationFileTag(SkeletonAnimationManager * skeletonAnimationManager, char * tag, int pos);
	static Bone * HandleSkeletonTag(char * tag, int pos, TextureManager * textureManager);
	static Bone * ReadNextPose(char * tag, int * pos, TextureManager * textureManager);
};

#endif /*SKELETONREADER_H_*/
